<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!-- 顶部开始 -->
<div id="toolbar">
	<!-- ****************登录/注册************** -->
	<div class="tool_r">
		    <?php if(isset($_SESSION['uid'])){ ?>
			<a href="<?php echo U('Member/index');?>"><?php echo $_SESSION['uname'];?></a><a href="<?php echo U('Index/out');?>">退出</a>
		<?php }else{ ?>
			<a href="<?php echo U('Login/index');?>">登录</a>
			<a href="<?php echo U('Register/index');?>">免费注册</a><span>|</span>
		<?php } ?>	
		<a href="<?php echo U('OrdCen/index');?>">我的订单</a>
		<a class="gouwu" href="<?php echo U('Shop/index');?>">
			<span class="gouwudai"></span>购物袋
			<span class="gouwuqiu">
				    <?php if($_SESSION['cart']){ ?>
				<?php echo $hd['session']['cart']['total_rows'];?>
				<?php }else{ ?>0<?php } ?>
			</span>
		</a><span>|</span>
		<a href="">联系客服</a>
	</div>
	<!-- ****************登录/注册************** -->
</div>
<!-- 顶部结束 -->